#ifndef __BAGISSUE__
#define __BAGISSUE__

//__pragma(__BAGISSUE__)

#include <vector>

class WuPi {
private:
	int weight;
	int value;
public:
	WuPi(int w, int v){
		weight = w;
		value = v;
	}
	int getWeight(){
		return weight;
	}

	int getValue(){
		return value;
	}
};

class BagSolution{
public:
	std::vector<WuPi> calMaxValue(std::vector<WuPi*> &wupis,int bagCapacity);

	int calMaxVal(std::vector<WuPi*> &wupis,  int index,int bagCapacity);
private:

};

#endif